home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / ecryptfs-utils.postinst < prev    next >
Encoding:
Text File  |  2009-06-04  |  933 b   |  32 lines

  1. #!/bin/sh -e
  2.  
  3. if dpkg --compare-versions "$2" lt-nl 73-0ubuntu6.1; then
  4.     if [ -e /var/log/installer/syslog ]; then
  5.         sed -i '/user-setup: YOU SHOULD RECORD THIS/,+2 d' /var/log/installer/syslog
  6.     fi
  7. fi
  8.  
  9. auth=0c1295085dca124e6ba5a3cea7993c22
  10. account=9f04221fe44762047894adeb96ffd069
  11. session=2e9a42f2a3b6573891ff9e6bf0c31c9e
  12. password=4cf59ec48caad2a06ea2e183d8bc007a
  13.  
  14. force=
  15. if dpkg --compare-versions "$2" lt-nl 53-1ubuntu6; then
  16.         # If we're upgrading from an older ecryptfs-utils,
  17.         # and the pam configuration precisely matches that
  18.         # which was written by auth-client-config, we can
  19.         # safely force the pam-auth-update.
  20.         force=--force
  21.         for type in auth account session password
  22.         do
  23.             sum="$(md5sum /etc/pam.d/common-$type 2>/dev/null | awk '{ print $1 }')"
  24.             [ "$sum" = "$(eval echo \$$type)" ] || force=
  25.         done
  26. fi
  27. pam-auth-update --package $force
  28.  
  29.  
  30.  
  31. exit 0
  32.